package net.optix.ip.vo
{
	public class TradeMarkVO
	{
		public var tradeMarkID:int;
		public var tradeMark:String;
		public var excluded:String;
		public var firstUseDate:String;
		public var filed:String;
		public var serialNumber:String;
		public var registered:int;
		public var registrationNumber:String;
		public var registrationDate:String;
		public var renewBy:String;
		
		public var clientID:int;
		public var inventorID:int;
		public var firmID:int;
		public var bConfirm:int;
		public var sConfirm:String;
		public var maxBudget:int;
		public var deadlineDate:String;
		public var practitionerID:int;
		
		public var clientName:String;
		public var firmName:String;
		
		public var bBid:int;
		public var requestBidDate:String;
		public var targetDate:String;
		
		public var budget:int;
		
		public static function purstMark(value:XML):TradeMarkVO
		{
			var mark:TradeMarkVO	=	new TradeMarkVO();
			try
			{
				mark.tradeMarkID	=	value.TradeMarkID;
				mark.clientID		=	value.ClientID;
				mark.inventorID		=	value.InventorID;
				mark.firmID			=	value.FirmID;
				mark.bConfirm		=	value.BConfirm;
				switch(mark.bConfirm)
				{
					case 0:
					 	mark.sConfirm	=	"NA";
					 	break;
					 case -1:
					 	mark.sConfirm	=	"Decline";
					 	break;
					 case 1:
					 	mark.sConfirm	=	"Accept";
					 	break;
					 case 2:
						mark.sConfirm	=	"Returned";
						break;
					case 3:
						mark.sConfirm	=	"";
						break;
				}
				mark.deadlineDate	=	value.DeadlineDate;
				mark.maxBudget		=	value.MaxBudget;
				mark.practitionerID	=	value.PractitionerID;
				
				mark.tradeMark		=	value.TradeMark;
				mark.excluded		=	value.Excluded;
				mark.firstUseDate	=	value.FirstUseDate;
				mark.filed			=	value.Filed;
				mark.serialNumber	=	value.SerialNumber;
				mark.registered		=	value.Registered;
				mark.registrationNumber	=	value.RegistrationNumber;
				mark.registrationDate	=	value.RegistrationDate;
				mark.renewBy		=	value.RenewBy;
				
				mark.clientName		=	value.ClientName;
				mark.firmName		=	value.FirmName;
				
				mark.bBid			=	value.BBid;
				mark.requestBidDate	=	value.RequestBidDate;
				mark.targetDate		=	value.TargetDate;
				
				mark.budget			=	value.Budget;
			}
			catch(error:Error){}
			return mark;
		}
	}
}